<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>我的订单</title>
	<%@include file="../common/header.jsp"%>

<style type="text/css">
	h1 {
		text-align: center;
		margin-top: 200px;
	}
</style>
</head>
<body>
	
	<div id="header">
			<img class="logo_img" alt="" src="../../static/img/logo.gif" >
			<span class="wel_word">我的订单</span>
			<div>
				<span>欢迎<span class="um_span">${sessionScope.student.username}</span>光临图书管理系统</span>
				<a href="studentServlet?action=logout">注销</a>&nbsp;&nbsp;
				<a href="index.jsp">返回</a>
			</div>
	</div>
	
	<div id="main">
		
		<table>
			<tr>
				<td>订单日期</td>
				<td>课室编号</td>
				<td>订单状态</td>
				<td>详细信息</td>
			</tr>
			<c:if test="${requestScope.page.items==null}">
				<tr>
					<td colspan="3" style="font-size: 22px; color:blue">你暂未预订任何课室，没有相关信息</td>
				</tr>
			</c:if>
			<c:if test="${requestScope.page.items!=null}">
				<c:forEach items="${requestScope.page.items}" var="order">
					<tr>
						<td>${order.createTime}</td>
						<td>${order.classroomId}</td>
						<td>
							<c:if test="${order.status==0}">审核中</c:if>
							<c:if test="${order.status==1}">已拒绝</c:if>
							<c:if test="${order.status==2}">已通过</c:if>
						</td>
						<td><a href="orderServlet?action=details&orderId=${order.id}&pageNo=${requestScope.page.pageNo}">查看详情</a></td>
					</tr>
				</c:forEach>
			</c:if>
		</table>
		<c:if test="${requestScope.page.items!=null}">
		<%@include file="../common/page_nav.jsp"%>
		</c:if>
	</div>

	<%@include file="../common/footer.jsp"%>

</body>
</html>